import request from '@/utils/request'

// 查询用户商品库存列表
export function listUserGoods(query) {
  return request({
    url: '/yuwen/userGoods/list',
    method: 'get',
    params: query
  })
}

// 查询用户商品库存详细
export function getUserGoods(id) {
  return request({
    url: '/yuwen/userGoods/' + id,
    method: 'get'
  })
}

// 新增用户商品库存
export function addUserGoods(data) {
  return request({
    url: '/yuwen/userGoods',
    method: 'post',
    data: data
  })
}

// 修改用户商品库存
export function updateUserGoods(data) {
  return request({
    url: '/yuwen/userGoods',
    method: 'put',
    data: data
  })
}

// 删除用户商品库存
export function delUserGoods(id) {
  return request({
    url: '/yuwen/userGoods/' + id,
    method: 'delete'
  })
}
